<?php 

class AdminController extends AppController {
    
    var $uses = array("Admin");   
           
    public function index() {
            
    }
    
    public function logon() {
        
        if(isset($_POST['login']) && isset($_POST['senha'])) {
            $this->set('dados',$this->Admin->validaUsuario($_POST['login'],$_POST['senha']));
            $this->render('painel');   
        } else {
            $this->redirect('/admin/',null,false);
        } 
         
    }
    
    public function painel() {
        
    }
    
    public function logoff() {
        
    } 
    
    public function validaLogin() {
        
    }
    
    
} 